Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document adapterOptions on REST adapter #7447

Merged
merged 2 commits into from
Apr 1, 2021
Merged

Conversation

sandstrom
Copy link
Contributor

@sandstrom sandstrom commented Mar 30, 2021

Seems like we aren't documenting adapterOptions for query and queryRecord in the JSONAPIAdapter.

I've just mirrored the code in the regular adapter:
https://github.com/emberjs/data/blob/master/packages/adapter/addon/index.ts#L248

There are already tests for this, see:

test('store.query should pass adapterOptions to adapter.query ', function(assert) {

Support for adapterOptions has existed for quite a while, it was initially added in this PR: #4856

Copy link
Contributor

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks g2g after lint fixes.

@igorT
Copy link
Member

igorT commented Mar 31, 2021

Thank you, I fixed the linting, Will merge once CI is green

@sandstrom
Copy link
Contributor Author

Thanks @igorT I hadn't gotten to it yet 😄

Also, have you thought about joining the Github sponsorship program? We'd like to donate to some of the core Ember (and Ember Data) contributors, and you're definitely one of them. I know it's not much, but hopefully more companies will join in eventually.

@igorT igorT merged commit 2c57905 into emberjs:master Apr 1, 2021
@sandstrom sandstrom deleted the patch-3 branch April 4, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants